package com.eke.bean;

import java.sql.Timestamp;

import com.jason.dbhelper2.annotations.Column;
import com.jason.dbhelper2.annotations.Table;

@Table("course")	
public class Course{
	/**
	 * 课程id
	 *
	 */
	@Column("course_id")	
	private Integer courseId;
	/**
	 * 
	 *
	 */
	@Column("course_type_id")	
	private Integer courseTypeId;
	/**
	 * 课程名称
	 *
	 */
	@Column("course_name")	
	private String courseName;
	/**
	 * 课程级别（0 1 2）
	 *
	 */
	@Column("course_level")	
	private Integer courseLevel;
	/**
	 * 课程状态(0 上架 1 下架)
	 *
	 */
	@Column("course_satte")	
	private Integer courseSatte;
	/**
	 * 总学习人数
	 *
	 */
	@Column("study_number")	
	private Integer studyNumber;
	/**
	 * 创建时间
	 *
	 */
	@Column("create_time")	
	private Timestamp createTime;
	/**
	 * 更新时间
	 *
	 */
	@Column("update_time")	
	private Timestamp updateTime;
	/**
	 * 课程所需积分
	 *
	 */
	@Column("course_intergal")	
	private Integer courseIntergal;
	/**
	 * 适合人群
	 *
	 */
	@Column("adopt")	
	private String adopt;
	/**
	 * 课程图片
	 *
	 */
	@Column("course_picture")	
	private String coursePicture;
	/**
	 * 课程描述
	 *
	 */
	@Column("course_describe")	
	private String courseDescribe;
	@Column("teacher_id")	
	private Integer teacher_id;
	public Integer getTeacher_id() {
		return teacher_id;
	}
	public void setTeacher_id(Integer teacher_id) {
		this.teacher_id = teacher_id;
	}
	public String getUser_Name() {
		return user_Name;
	}
	public void setUser_Name(String user_Name) {
		this.user_Name = user_Name;
	}

	@Column("user_name")	
	private String user_Name;
	public Course(){
	}
	public Course(Integer courseId){
		this.courseId=courseId;
	}
	public Course(Integer courseId,Integer courseTypeId){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime,Timestamp updateTime){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
		this.updateTime=updateTime;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime,Timestamp updateTime,Integer courseIntergal){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
		this.updateTime=updateTime;
		this.courseIntergal=courseIntergal;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime,Timestamp updateTime,Integer courseIntergal,String adopt){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
		this.updateTime=updateTime;
		this.courseIntergal=courseIntergal;
		this.adopt=adopt;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime,Timestamp updateTime,Integer courseIntergal,String adopt,String coursePicture){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
		this.updateTime=updateTime;
		this.courseIntergal=courseIntergal;
		this.adopt=adopt;
		this.coursePicture=coursePicture;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime,Timestamp updateTime,Integer courseIntergal,String adopt,String coursePicture,String courseDescribe){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
		this.updateTime=updateTime;
		this.courseIntergal=courseIntergal;
		this.adopt=adopt;
		this.coursePicture=coursePicture;
		this.courseDescribe=courseDescribe;
	}
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime,Timestamp updateTime,Integer courseIntergal,String adopt,String coursePicture,String courseDescribe,String user_Name){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
		this.updateTime=updateTime;
		this.courseIntergal=courseIntergal;
		this.adopt=adopt;
		this.coursePicture=coursePicture;
		this.courseDescribe=courseDescribe;
		this.user_Name = user_Name;
	}
	
	public Course(Integer courseId,Integer courseTypeId,String courseName,Integer courseLevel,Integer courseSatte,Integer studyNumber,Timestamp createTime,Timestamp updateTime,Integer courseIntergal,String adopt,String coursePicture,String courseDescribe,String user_Name,Integer teacher_id){
		this.courseId=courseId;
		this.courseTypeId=courseTypeId;
		this.courseName=courseName;
		this.courseLevel=courseLevel;
		this.courseSatte=courseSatte;
		this.studyNumber=studyNumber;
		this.createTime=createTime;
		this.updateTime=updateTime;
		this.courseIntergal=courseIntergal;
		this.adopt=adopt;
		this.coursePicture=coursePicture;
		this.courseDescribe=courseDescribe;
		this.user_Name = user_Name;
		this.teacher_id = teacher_id;
	}
	
	/**
	 * 获取课程id
	 */
	public Integer getCourseId(){
		return courseId;
	}
	/**
	 * 设置课程id
	 */
	public void setCourseId(Integer courseId){
		this.courseId=courseId;
	}
	/**
	 * 获取
	 */
	public Integer getCourseTypeId(){
		return courseTypeId;
	}
	/**
	 * 设置
	 */
	public void setCourseTypeId(Integer courseTypeId){
		this.courseTypeId=courseTypeId;
	}
	/**
	 * 获取课程名称
	 */
	public String getCourseName(){
		return courseName;
	}
	/**
	 * 设置课程名称
	 */
	public void setCourseName(String courseName){
		this.courseName=courseName;
	}
	/**
	 * 获取课程级别（0 1 2）
	 */
	public Integer getCourseLevel(){
		return courseLevel;
	}
	/**
	 * 设置课程级别（0 1 2）
	 */
	public void setCourseLevel(Integer courseLevel){
		this.courseLevel=courseLevel;
	}
	/**
	 * 获取课程状态(0 上架 1 下架)
	 */
	public Integer getCourseSatte(){
		return courseSatte;
	}
	/**
	 * 设置课程状态(0 上架 1 下架)
	 */
	public void setCourseSatte(Integer courseSatte){
		this.courseSatte=courseSatte;
	}
	/**
	 * 获取总学习人数
	 */
	public Integer getStudyNumber(){
		return studyNumber;
	}
	/**
	 * 设置总学习人数
	 */
	public void setStudyNumber(Integer studyNumber){
		this.studyNumber=studyNumber;
	}
	/**
	 * 获取创建时间
	 */
	public Timestamp getCreateTime(){
		return createTime;
	}
	/**
	 * 设置创建时间
	 */
	public void setCreateTime(Timestamp createTime){
		this.createTime=createTime;
	}
	/**
	 * 获取更新时间
	 */
	public Timestamp getUpdateTime(){
		return updateTime;
	}
	/**
	 * 设置更新时间
	 */
	public void setUpdateTime(Timestamp updateTime){
		this.updateTime=updateTime;
	}
	/**
	 * 获取课程所需积分
	 */
	public Integer getCourseIntergal(){
		return courseIntergal;
	}
	/**
	 * 设置课程所需积分
	 */
	public void setCourseIntergal(Integer courseIntergal){
		this.courseIntergal=courseIntergal;
	}
	/**
	 * 获取适合人群
	 */
	public String getAdopt(){
		return adopt;
	}
	/**
	 * 设置适合人群
	 */
	public void setAdopt(String adopt){
		this.adopt=adopt;
	}
	/**
	 * 获取课程图片
	 */
	public String getCoursePicture(){
		return coursePicture;
	}
	/**
	 * 设置课程图片
	 */
	public void setCoursePicture(String coursePicture){
		this.coursePicture=coursePicture;
	}
	/**
	 * 获取课程描述
	 */
	public String getCourseDescribe(){
		return courseDescribe;
	}
	/**
	 * 设置课程描述
	 */
	public void setCourseDescribe(String courseDescribe){
		this.courseDescribe=courseDescribe;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((courseId == null) ? 0 : courseId.hashCode());
		result = prime * result + ((courseTypeId == null) ? 0 : courseTypeId.hashCode());
		result = prime * result + ((courseName == null) ? 0 : courseName.hashCode());
		result = prime * result + ((courseLevel == null) ? 0 : courseLevel.hashCode());
		result = prime * result + ((courseSatte == null) ? 0 : courseSatte.hashCode());
		result = prime * result + ((studyNumber == null) ? 0 : studyNumber.hashCode());
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode());
		result = prime * result + ((courseIntergal == null) ? 0 : courseIntergal.hashCode());
		result = prime * result + ((adopt == null) ? 0 : adopt.hashCode());
		result = prime * result + ((coursePicture == null) ? 0 : coursePicture.hashCode());
		result = prime * result + ((courseDescribe == null) ? 0 : courseDescribe.hashCode());
		return result;
	}
		
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Course other = (Course) obj;
		if (courseName == null) {
			if (other.courseName != null)
				return false;
		} else if (!courseName.equals(other.courseName))
			return false;
		if (adopt == null) {
			if (other.adopt != null)
				return false;
		} else if (!adopt.equals(other.adopt))
			return false;
		if (coursePicture == null) {
			if (other.coursePicture != null)
				return false;
		} else if (!coursePicture.equals(other.coursePicture))
			return false;
		if (courseDescribe == null) {
			if (other.courseDescribe != null)
				return false;
		} else if (!courseDescribe.equals(other.courseDescribe))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Course [courseId=" + courseId+",courseTypeId=" + courseTypeId+",courseName=" + courseName+",courseLevel=" + courseLevel+",courseSatte=" + courseSatte+",studyNumber=" + studyNumber+",createTime=" + createTime+",updateTime=" + updateTime+",courseIntergal=" + courseIntergal+",adopt=" + adopt+",coursePicture=" + coursePicture+",courseDescribe=" + courseDescribe+"]";
	}





}